#!/bin/sh
printf "**** " >> /d/res.txt
pwd >> /d/res.txt
printf "\n"

git log  --since=2025-01-01 --until=2025-04-01  --format='%aN' | sort -u -r | while read name; do printf "%25s" "$name"; \
git log  --since=2025-01-01 --until=2025-04-01  --author="$name" --pretty=tformat: --numstat | \
awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "%15s %15s %15s \n", loc, add, subs }' \
-; done   >> /d/res.txt

printf "\n\n" >> /d/res.txt
exit;
